package cn.yaoud.salus.his.base.controller;


import cn.yaoud.salus.common.core.util.R;
import cn.yaoud.salus.his.base.model.vo.*;
import cn.yaoud.salus.his.base.service.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * <p>
 * 病历项 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2024-05-10 10:44:40
 */
@RestController
@RequestMapping("init")
public class InitController {
    @Resource
    private InitEntryService initEntryService;
    @Resource
    private InitEntryDetailService initEntryDetailService;

    @Resource
    private InitCaseSoapWordService initCaseSoapWordService;
    @Resource
    private InitCaseSoapWordOptionService initCaseSoapWordOptionService;
    @Resource
    private InitCaseSoapWordGroupService initCaseSoapWordGroupService;
    @Resource
    private InitCaseSoapService initCaseSoapService;
    @Resource
    private InitCaseFormatService initCaseFormatService;
    @Resource
    private InitCaseFormatDetailService initCaseFormatDetailService;

    @GetMapping("/selectListCaseFormat")
    public R<List<HisInitCaseFormatVO>> selectListCaseFormat() {
        return R.ok(initCaseFormatService.selectListCaseFormat());
    }
    @GetMapping("/selectListCaseSoap")
    public R<List<HisInitCaseSoapVO>> selectListCaseSoap() {
        return R.ok(initCaseSoapService.selectListCaseSoap());
    }
    @GetMapping("/selectListCaseFormatDetail")
    public R<List<HisInitCaseFormatDetailVO>> selectListCaseFormatDetail() {
        return R.ok(initCaseFormatDetailService.selectListCaseFormatDetail());
    }
    @GetMapping("/selectListCaseSoapWordGroup")
    public R<List<HisInitCaseSoapWordGroupVO>> selectListCaseSoapWordGroup() {
        return R.ok(initCaseSoapWordGroupService.selectListCaseSoapWordGroup());
    }
    @GetMapping("/selectListCaseSoapWord")
    public R<List<HisInitCaseSoapWordVO>> selectListCaseSoapWord() {
        return R.ok(initCaseSoapWordService.selectListCaseSoapWord());
    }
    @GetMapping("/selectListCaseSoapWordOption")
    public R<List<HisInitCaseSoapWordOptionVO>> selectListCaseSoapWordOption() {
        return R.ok(initCaseSoapWordOptionService.selectListCaseSoapWordOption());
    }
    @GetMapping("/selectListEntry")
    public R<List<HisInitEntryVO>> selectListEntry() {
        return R.ok(initEntryService.selectListEntry());
    }
    @GetMapping("/selectListEntryDetail")
    public R<List<HisInitEntryDetailVO>> selectListEntryDetail() {
        return R.ok(initEntryDetailService.selectListEntryDetail());
    }

}